<?php
ob_start();
session_start();
 $_SESSION = array();
 session_destroy();
?>
<meta http-equiv="refresh" content="0;URL=index.php" />
<?php
ob_end_flush();
?>